add_library(volume_fusionstorage_obj
    SHARED
    DiskDataPersistence.cpp
    FusionStorageApi.cpp
    FusionStorageRestApiOperator.cpp
    FusionStorageBitmapHandle.cpp
    FusionStorageCleanFile.cpp
    FusionStorageVolumeHandler.cpp
    FusionStorageIscsiDiskScanner.cpp
)

add_subdirectory(client)
add_subdirectory(fusionstorage_api_factory)

target_include_directories(volume_fusionstorage_obj
    PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/../../
)

target_link_libraries(volume_fusionstorage_obj
        PRIVATE
        vir_safe_cmplib

        PUBLIC
        fusionstorageapi_factory_obj
        volume_fusionstorage_client_obj
        )
